package com.lxz.usercenter.common;

/**
 * 错误码
 */
public enum ErrorCode {

    success(0, "成功", ""),
    PARAMS_ERROR(40000, "参数错误", ""),
    PARAMS_NULL_ERROR(40001, "参数为空", ""),

    NOT_LOGIN_ERROR(40100, "未登录", ""),

    NO_AUTH_ERROR(40101, "无权限", ""),
    SYSTEM_ERROR(50000, "系统错误", ""),
    ;


    /**
     * 用户相关错误码
     */
    private final int code;

    /**
     * 错误信息
     */
    private final String message;

    /**
     * 详细描述
     */
    private final String description;


    ErrorCode(int code, String message, String description) {
        this.code = code;
        this.description = description;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDescription() {
        return description;
    }


}
